package com.xmy.cultivate.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.xmy.cultivate.enums.TypePermissionEnum;
import lombok.Data;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author baomidou
 * @since 2022-08-07
 */
@Data
public class Permission implements Serializable {

    private static final long serialVersionUID = 1L;

    
    private Long id;

    /**
     * 权限名称
     */
    private String name;

    /**
     * 权限类型 1为菜单 2为功能 3为APItype
     */
    private TypePermissionEnum type;

    /**
     * 权限编码
     */
    private String code;

    /**
     * 权限描述
     */
    private String description;

    
    private Long pid;


    /**
     * 企业可见状态
     */
    private Integer enVisible;

    @TableField(exist = false)
    private PermissionApi apiObj;

    @TableField(exist = false)
    private PermissionMenu menuObj;

    @TableField(exist = false)
    private PermissionPoint pointObj;

    @TableField(exist = false)
    private PermissionApi apiList;

    @TableField(exist = false)
    private PermissionMenu menuList;

    @TableField(exist = false)
    private PermissionPoint pointList;


}
